Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: /
QuickDraw 3D RAVE / QuickDraw 3D RAVE Reference
QuickDraw 3D RAVE Routines / Manipulating Textures and Bitmaps


QABitmapBindColorTable

You can use the QABitmapBindColorTable function to bind a color lookup table to a bitmap.

TQAError QABitmapBindColorTable (
                                 const TQAEngine *engine,
                                 TQABitmap *bitmap,
                                 TQAColorTable *colorTable);
engine
A drawing engine.
bitmap
A bitmap.
colorTable
A color lookup table (as returned by a previous call to QAColorTableNew).
DESCRIPTION
The QABitmapBindColorTable function binds the color lookup table specified by the colorTable parameter to the bitmap specified by the bitmap parameter. Before you can draw any bitmap whose pixel type is either kQAPixel_CL4 or kQAPixel_CL8, you must bind a color lookup table to it. In addition, the type of the specified color lookup table must match that of the pixel type of the bitmap to which it is bound. For example, a color lookup table of type kQAColorTable_CL8_RGB32 can be bound only to a bitmap whose pixel type is kQAPixel_CL8.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
28 AUG 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help